package com.ruoyi.business.domain.bo;

import lombok.Data;

import java.util.Objects;

@Data
public class FollowUserTagKey {
    private final String externalUserid;
    private final String userId;

    public FollowUserTagKey(String externalUserid, String userId) {
        this.externalUserid = externalUserid;
        this.userId = userId;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        FollowUserTagKey that = (FollowUserTagKey) o;
        return Objects.equals(externalUserid, that.externalUserid) &&
            Objects.equals(userId, that.userId);
    }

    @Override
    public int hashCode() {
        return Objects.hash(externalUserid, userId);
    }

}
